from myClassPkg.mytest import mytest
import myClassPkg as cp
import cv2
import numpy as np

print("hello vscode")
m = mytest('可以',6)
print('name:{}, year:{}'.format(m.name, m.year))
print('..............................................')

pictrue_path = 'picture/p.jpg'
img = cv2.imread(pictrue_path)
cv2.imshow('img', img)
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
cv2.imshow('gray', gray)
hold,thr = cv2.threshold(gray, 50, 255, cv2.THRESH_OTSU)
cv2.imshow('thr', thr)
print('hold:{}'.format(hold))

cp.fun(1,23,'asf')

cv2.waitKey(0)

